package schaham.umbria2009.application;

import org.apache.wicket.protocol.http.HttpSessionStore;
import org.apache.wicket.protocol.http.WebApplication;
import org.apache.wicket.session.ISessionStore;

import schaham.umbria2009.pages.HomePage;

/**
 * Application object for your web application. If you want to run this application without
 * deploying, run the Start class.
 * 
 * @see schaham.umbria2009.Start#main(String[])
 */
public class SchahamUmbria2009Application extends WebApplication {
    /**
     * Constructor
     */
    public SchahamUmbria2009Application() {}

    /**
     * @see org.apache.wicket.protocol.http.WebApplication#init()
     */
    @Override
    protected void init() {
        this.getResourceSettings().setResourcePollFrequency(null);
        mountBookmarkablePage("/home", HomePage.class);

    }

    /**
     * @see org.apache.wicket.Application#getHomePage()
     */
    @Override
    public Class<HomePage> getHomePage() {
        return HomePage.class;
    }

    /**
     * @see org.apache.wicket.Application#newSessionStore()
     */
    @Override
    protected ISessionStore newSessionStore() {
        return new HttpSessionStore(this);
    }
}
